package sgi.user;

public class User implements java.io.Serializable {

	public static enum privilege {CUSTOMER,CUSTOMER_SERVICE_REPRESENTATIVE,CUSTOMER_RELATIONS_OFFICER,SALES_MANAGER,CEO,BRANCH_MANAGER,ARCHIVE_MANAGER,SYSTEM_ADMINISTRATOR};
	
	private String username;
	private String password;
	private String fname;
	private String lname;
	private int privilege;
	private int onlineStat;
	
	public User(String username,String password,int privilege)
	{
		this.username=username;
		this.password=password;
		this.privilege=privilege;
	}
	
	public User(User user)
	{
		this.username=user.getUsername();
		this.password=user.getPassword();
		this.privilege=user.getPrivilege();
	}
	
	public User(String username,String password,int privilege,int onlineStat)
	{
		this.username=username;
		this.password=password;
		this.privilege=privilege;
		this.onlineStat=onlineStat;
	}
	
	public User(String username)
	{
		this.username=username;
	}
	
	
	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public int getPrivilege() {
		return privilege;
	}

	public int getOnlineStat() {
		return onlineStat;
	}

	public void setOnlineStat(int onlineStat) {
		this.onlineStat = onlineStat;
	}

	public String getFname() {
		return fname;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getLname() {
		return lname;
	}

	public void setLname(String lname) {
		this.lname = lname;
	}
}
